/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//CONSTANTES JAVASCRIPT
MOD_LOGIN = 0;
MOD_INTERNO_ADMIN = 1;
MOD_INTERNO_SUPERVISOR = 2;
MOD_INTERNO_VENDEDOR = 3;

JSON_FORMAT = "json";

//INDICES DE CONTROLADORES
var CONTROLLER_LOGIN = 0;
var CONTROLLER_DATA_TABLES = 1;
var CONTROLLER_MTO_USUARIOS = 2;
var CONTROLLER_MTO_PRODUCTOS = 3;
//ACCIONES A REALIZAR EN LOS CONTROLADORES
//LoginController
var ACC_LOGIN = 1;
var ACC_GET_USER_LOGED = 2
var ACC_LOGOUT = 3

//DataTableController
var ACC_GET_DT_USERS = 1;
var ACC_GET_DT_PRODUCTS = 2;

//MtoUsuarioController
var ACC_GET_USER_BY_ID = 1;
var ACC_ELIMINAR_USUARIO_POR_ID = 2;
var ACC_AGREGAR_USUARIO = 3;
var ACC_EDITAR_USUARIO = 4;
var ACC_EXISTS_USERNAME = 5;
var ACC_DISABLE_USER_BY_ID = 6;

//MtoProductoController
var ACC_EXISTS_NAME = 1;

//-----------------------------------------
//ERROR CODE
var CODE_SUCCESS = 0;
var CODE_FAILED  = -1;
var EC_USER_NOT_REGISTERED = -2;
var EC_USER_OR_PASSWORD_INCORRECTS = -3;


//IMG_ALERT_INDEX
IMG_ALERT_SUCCESS = 0;
IMG_ALERT_WARNING = 1;
IMG_ALERT_ERROR = 2;
//CLASSES_MESSAGE_INDEX
CLS_MSG_SUCCESS = 0;
CLS_MSG_WARNING = 1;
CLS_MSG_ERROR = 2;




//BEANS
BEANUSUARIO = "usuario";
BEANUSUARIOENBDISAB = "usuario_enab_disab"
BEANVENTA = "venta";
